<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/11/5
 * Time: 13:58
 */

namespace Modules\Admin\Http\Controllers;

use Illuminate\Support\Facades\Request;
use Modules\Admin\Service\ShopModifyService;

class ShopModifyController extends BaseController
{

    /**
     *  获取申请变更的列表
     *  hinq 2019 11 05
     *
     **/
    public function index()
    {
        $arr_search = (array)Request::all();
        $arr_list = ShopModifyService::get_list((array)$arr_search);
//        dd( $arr_list );
        echo_error($arr_list);
        return view('admin::ShopModity.index', $arr_list['data']);
    }


    /**
     *  变更信息详细信息
     *  hinq 2019 11 05
     *
     **/
    public function detail()
    {
        $nId = Request::get('id');
        $arr_list = ShopModifyService::detail((int)$nId);
        return view('admin::ShopModity.detail', ['info' => $arr_list['data']]);
    }


    /**
     *  审核 变更信息
     *  hinq 2019 11 05
     *
     **/
    public function shenhe()
    {
        $arr_input = (array)Request::all();
        return ShopModifyService::shenhe((array)$arr_input);
    }

}

